<template>
	<view>
		<view id="head">
			<view class="iconfont icon-xiangzuo1"  @click="goback"></view>
			<view class="headtext">我的会议</view>
			<view class="headicon">
				<!-- <text class="iconfont icon-sousuo"></text> -->
				<text class="iconfont icon-jia" @click="goadd"></text>
			</view>
			
		</view>
		<view id="mian">
			<view class="itemlist" v-for="(v,i) in tabledate" @click="navi(i)">
				<image src="../../static/index_1.png" class="meetimg"></image>
				<view>
					<view>{{tabledate[i].meeting_tit}}</view>
					<view>{{tabledate[i].meeting_todotime}}</view>
					<view>{{tabledate[i].metroom_name}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		computed,
		reactive,
		toRefs,
		onMounted
	} from 'vue';
	import $http from '../../utils/http.js'
	export default {
		setup() {
			let data = reactive({
				tabledate: [],
				navi:(i)=>{
					uni.navigateTo({
						url: '../meeting_details/meeting_details?index='+`${i}`
					});
				},
				goback:()=>{
					uni.navigateBack({
						delta:1
					})
				},
				goadd:()=>{
					uni.navigateTo({
						url: '../meeting_launch/meeting_launch'
					})
				}
			})
			onMounted(() => {
				$http({
					url: '/Meetmanagement/meeting/get',
					data: {}
				}).then((res) => {
					data.tabledate = res.data.data
					console.log(res)
				})
			})
			return {
				...toRefs(data)
			}
		}
	}
</script>

<style>
	@import url("~@/static/font/iconfont.css");

	#mian {
		background-color: #F2F2F2;
		padding: 24rpx 36rpx;
	}

	#head {
		height: 90rpx;
		display: flex;
		justify-content:space-between;
		padding: 0rpx 36rpx;
		align-items: center;
		
		
	}
	.headtext{
		font-size: 40rpx;
	}
	.icon-xiangzuo1{
		font-size: 50rpx;
	}
	.headicon>text{
		font-size: 50rpx;
		margin: 0 15rpx;
	}

	.itemlist {
		border-radius: 2rpx;
		height: 150rpx;
		background-color: #FFFFFF;
		padding: 40rpx 30rpx;
		margin-bottom: 24rpx;
		display: flex;
		align-items: center;
	}

	.itemlist>image {
		flex: 1;
	}

	.itemlist>view {
		flex: 2;
		margin-left: 30rpx;
	}

	.meetimg {
		width: 200rpx;
		height: 120rpx;
	}
</style>
